﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace SmoothControls
{
	public partial class MenuContainer : UserControl
	{
		public MenuContainer()
		{
			InitializeComponent();
			this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
			MainMenu.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
			MainMenu.Height= System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
			MainMenu.Location = new Point((int)(this.Width/2)-(int)(MainMenu.Width/2),0);
			leftSideMenu.Width = (int)(MainMenu.Width /2) ;
			rightSideMenu.Width = (int)(MainMenu.Width/2);
			leftSideMenu.Location = new Point(MainMenu.Left-leftSideMenu.Width, 0);
			rightSideMenu.Location = new Point(MainMenu.Left + MainMenu.Width,0);
			MainMenu.WidthAnimationActive = true;
			MainMenu.Paint += new PaintEventHandler( MainMenu_Paint );
		}

		void MainMenu_Paint( object sender, PaintEventArgs e )
		{
			leftSideMenu.Location = new Point(MainMenu.Left-leftSideMenu.Width, 0);
			rightSideMenu.Location = new Point(MainMenu.Left + MainMenu.Width,0);
		}

		private void MenuContainer_Click( object sender, EventArgs e )
		{

		}

		private void rightSideMenu_Click( object sender, EventArgs e )
		{

		}

		private void leftSideMenu_Click( object sender, EventArgs e )
		{

		}

		private void MainMenu_Click( object sender, EventArgs e )
		{

		}

	}
}
